package com.gxa.logistics.mapper;

import com.gxa.logistics.domain.dto.MaterialDTO;
import com.gxa.logistics.domain.dto.TransferrecordDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MaterialMapper {

    void insert(MaterialDTO materialDTO);
    int delete(@Param("material_id") Integer material_id);
    void update(MaterialDTO materialDTO);
    List<MaterialDTO> selectMaterialByName(@Param("material_name") String material_name);
    List<MaterialDTO> selectMaterialByWarehouseName(@Param("warehouse_name") String warehouse_name);
    int selectMaterialCount();
    List<MaterialDTO> selectMaterial(@Param("index") int index, @Param("limit") int limit);

}
